<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"  href="/styles/general.css"/>
<link rel="stylesheet" type="text/css" href="/styles/main.css"/>
<link rel="stylesheet" type="text/css" href="/styles/validator.css"/>
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
	$("#casno").formValidator({onshow:"请输入CAS No.",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#compoundno").formValidator({onshow:"请输入内部编号",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#compoundname").formValidator({onshow:"请输入中文名",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#compoundnameen").formValidator({onshow:"请输入英文名",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#smile").formValidator({onshow:"请输入结构式",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#formula").formValidator({onshow:"请输入分子式",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#molecularweight").formValidator({onshow:"请输入分子量",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#product").formValidator({onshow:"请输入终产物",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#patent").formValidator({onshow:"请输入专利情况",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#appearance").formValidator({onshow:"请输入外观性状",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#meltingpoint").formValidator({onshow:"请输入熔点",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#boilingpoint").formValidator({onshow:"请输入沸点",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#solubility").formValidator({onshow:"请输入溶解性",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#stability").formValidator({onshow:"请输入稳定性",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#synthesisroute").formValidator({onshow:"请输入合成路线",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	//$("#synthesisdoc").formValidator({onshow:"请输入方法文档",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
});
</script>
<title></title>
</head>
<body>
<h1>
<span class="action-span"><a href="/compound">管理化合物</a></span>
<span class="action-span1"> 添加化合物</span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/compound/add/" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <table width="100%" id="table_form">
      <tr>
        <td class="label">CAS No.：</td>
        <td>
			{form text * casno casno}
        </td>
        <td><div id='casnoTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">内部编号：</td>
        <td>
			{form text * compoundno compoundno}
        </td>
        <td><div id='compoundnoTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">中文名：</td>
        <td>
			{form text * compoundname compoundname}
        </td>
        <td><div id='compoundnameTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">英文名：</td>
        <td>
			{form text * compoundnameen compoundnameen}
        </td>
        <td><div id='compoundnameenTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">结构式：</td>
        <td>
			{form chem * smile smile}
        </td>
        <td><div id='formulaTip' style="width:250px"></div></td>
      </tr>
      <!-- 
      <tr>
        <td class="label">分子式：</td>
        <td>
			{form text * formula formula}
        </td>
        <td><div id='smileTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">分子量：</td>
        <td>
			{form text * molecularweight molecularweight}
        </td>
        <td><div id='molecularweightTip' style="width:250px"></div></td>
      </tr> -->
      <tr>
        <td class="label">终产物：</td>
        <td>
			{form text * product product}
        </td>
        <td><div id='productTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">专利情况：</td>
        <td>
			{form text * patent patent}
        </td>
        <td><div id='patentTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">外观性状：</td>
        <td>
			{form text * appearance appearance}
        </td>
        <td><div id='appearanceTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">熔点：</td>
        <td>
			{form text * meltingpoint meltingpoint}
        </td>
        <td><div id='meltingpointTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">沸点：</td>
        <td>
			{form text * boilingpoint boilingpoint}
        </td>
        <td><div id='boilingpointTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">溶解性：</td>
        <td>
			{form text * solubility solubility}
        </td>
        <td><div id='solubilityTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">稳定性：</td>
        <td>
			{form text * stability stability}
        </td>
        <td><div id='stabilityTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">项目编号：</td>
        <td>
			{form select * projectid projectid * * * $projectlist}
        </td>
        <td><div id='projectidTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">合成路线：</td>
        <td>
			{form chem * synthesisroute synthesisroute}
        </td>
        <td><div id='synthesisrouteTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">方法文档：</td>
        <td>
			{form sinaeditor * synthesisdoc synthesisdoc}
        </td>
        <td><div id='synthesisdocTip' style="width:250px"></div></td>
      </tr>
  </table>  
   <div class="button-div">
        <input type="submit" value="&nbsp;确&nbsp;定&nbsp;" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" />
   </div>
  </form>
</div>
{template 'footer.html'}
</body>
</html>